#pragma once

#include<string>
using namespace std;

class student
{
	int id;
	string name;
	float mark;
	int classID;
public:
	student(void);
	student(int,string);
	student(int,string,int);
	~student(void);

	int		getID()const ;    //const method called by const object
	void	setID(int _id);
	string	getName()const ;
	void	setName(string _name);
	float	getMark()const;
	void	setMark(float _mark);
	int		getClassID()const;
	void	setClassID(int _classID);
	void	print();

	//void operator = (student* const _std){
	//	id = _std->id;
	//	name = _std->name;
	//	mark = _std->mark;
	//	classID = _std->classID;
	//}

	inline bool operator ==(const student& _stu)const
	{
		if(id == _stu.id)
		{
			return true;
		}
		else{
			return false;
		}
	}
	
	inline bool operator < (const student& _stu)const
	{
		return (this->id < _stu.id);
	}

};


